package com.xiaoshuidi.cloud.module.finance.controller.admin.finance.vo.account;

import com.xiaoshuidi.cloud.framework.common.pojo.PageParam;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

import static com.xiaoshuidi.cloud.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;

@Schema(description = "管理后台 - 账户提现记录 Request VO")
@EqualsAndHashCode
@Data
public class FinanceAccountWithdrawPageReqVO extends PageParam {
    @Schema(description = "门店id")
    private Integer apartmentId;
    @Schema(description = "账户id")
    private String custId;

    /**
     * 账户类型
     */
    @Schema(description = "账户类型")
    private String custType;
    @Schema(description = "提现类型(发起的 APPLY/同住人审核的 REVIEW)")
    private String type;
    @Schema(description = "提交SUBMIT/审批中PENDING/审批拒绝REJECT/同住人同意AGREE/同住人拒绝REFUSE")
    private String result;
    @Schema(description = "查询关键字")
    private String keyword;
    @Schema(description = "应付款日期yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] agreeTime;

    @Schema(description = "创建时间yyyy-MM-dd HH:mm:ss")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND)
    private LocalDateTime[] creatTime;
    @Schema(description = "申请id")
    private Integer refId;

    /**
     * 是否过滤 待同住人同意 同住人同意 付款处理中中数据
     */
    private Boolean isFilter;
}
